package com.ouc.yyi.springbootwebapp.yaml.bo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.sql.SQLOutput;

@RestController
public class YamlResource {

    @Autowired
    private BranchInfo branchInfo;

    @Autowired
    private ReadProperties readProperties;

    @Autowired
    private BranchInfoProperties branchInfoProperties;

    @RequestMapping("/yaml")
    public void yaml() {
        System.err.println(branchInfo);
    }
    @RequestMapping("/properties")
    public void properties() {
        System.err.println(branchInfoProperties);
    }

}
